#include "my_stdio.h"

#ifdef DEBUG 
#include <stdio.h>
#endif


int main()
{
    FILE_* fp = fopen_("./log.txt", "w");
    assert(fp);

    const char* arr = "hello world\n";
    fwrite_(arr, strlen(arr), fp);

#ifdef DEBUG 
    
    printf("%s\n", fp->_buffer);

#endif

    fclose_(fp);
    fp = NULL;

    return 0;
}
